package com.lzh.rocblogbackend.controller;

import com.lzh.rocblogbackend.common.AjaxResult;
import com.lzh.rocblogbackend.mapper.MomentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
public class MomentController {
    @Autowired
    MomentMapper momentMapper;
    @RequestMapping("/getmoment")
    public HashMap<String,Object> getComment() {
        return AjaxResult.success(momentMapper.getMoment());
    }
}
